package io.renren.modules.mvs.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.mvs.dto.PaymentDto;
import io.renren.modules.mvs.entity.PaymentEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.modules.mvs.entity.PaymentDetailEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 缴纳记录表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2025-03-30 17:08:24
 */
@Mapper
public interface MvsPaymentDao extends BaseMapper<PaymentEntity> {

    IPage<PaymentDto> selectPageByCondition(Page<Object> page, Map<String, Object> condition);

    List<Map<String,?>> selectMoneyByDateRange(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("userId") Long userId);
}
